        
package com.fire.user.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.fire.user.dao.UserAuthorityMapper;
import com.fire.user.model.UserAuthorityModel;
import com.fire.user.service.IUserAuthorityService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * new用户tokenService
 *
 * @author Matthew
 * @Date 2019-01-10 11:31
 */
@Service
public class UserAuthorityServiceImpl extends ServiceImpl<UserAuthorityMapper, UserAuthorityModel> implements IUserAuthorityService {

    private static final Logger LOGGER = LoggerFactory.getLogger(UserAuthorityServiceImpl.class);

    @Autowired
    private UserAuthorityMapper userAuthorityMapper;


    @Override
    public UserAuthorityModel selectOne(UserAuthorityModel entity){
        return userAuthorityMapper.selectOne(entity);
    }

    @Override
    public List<UserAuthorityModel>selectList(UserAuthorityModel model){
         return userAuthorityMapper.selectList(model, new EntityWrapper<UserAuthorityModel>());
    }

    @Override
    public List<UserAuthorityModel>selectList(UserAuthorityModel model,Wrapper<UserAuthorityModel>wrapper){
        return userAuthorityMapper.selectList(model,wrapper);
    }

    @Override
    public List<UserAuthorityModel>selectPage(Pagination pagination,UserAuthorityModel model,Wrapper<UserAuthorityModel>wrapper){
        return userAuthorityMapper.selectPage(pagination,model,wrapper);
    }

}
